package pa4.util;

import java.io.Serializable;

public class IntegerComp implements Comparable<Integer>, Serializable{

	private int key;
	
	public IntegerComp(int key){
		this.key = key;
	}

	@Override
	public int compareTo(Integer x) {
		if(x > key)
			return -1;
		else if(x == key)
			return 0;
		else return 1;
	}

}
